package com.jm.constants;

public class SystemConstants {
    /**
     * 文章是草稿
     */
    public static final String ARTICLE_STATUS_DRAFT = "1";
    /**
     * 文章是正常分布状态
     */
    public static final String ARTICLE_STATUS_NORMAL = "0";
    /**
     * 热门文章显示的数量
     */
    public static final int HOT_ARTICLE_DISPLAYED_COUNT = 10;
    /**
     * 状态正常
     */
    public static final String STATUS_NORMAL = "0";
    /**
     * 状态禁止
     */
    public static final String STATUS_FORBID = "1";
    /**
     * 友链状态为审核通过
     */
    public static final String LINK_STATUS_NORMAL = "0";
    /**
     * 前台博客登录key存入redis的前缀
     */
    public static final String BLOG_LOGIN_KEY = "bloglogin:";
    /**
     * 后台管理登录key存入redis的前缀
     */
    public static final String ADMIN_LOGIN_KEY = "login:";
    /**
     * 评论类型：文章
     */
    public static final String ARTICLE_COMMENT = "0";
    /**
     * 评论类型：友链
     */
    public static final String LINK_COMMENT = "1";
    /**
     * 根评论id：最外层-1
     */
    public static final Long ROOT_ID = -1L;
    /**
     * viewCount的Map集合存入redis的前缀
     */
    public static final String ARTICLE_VIEW_COUNT="article:viewCount";
    /**
     * 菜单类型：目录
     */
    public static final String DIRECTORY = "M";
    /**
     * 菜单类型：菜单
     */
    public static final String MENU = "C";
    /**
     * 菜单类型：按钮
     */
    public static final String BUTTON = "F";
    /**
     * 用户类型：管理员
     */
    public static final String ADMIN = "1";
    /**
     * 用户类型：普通用户
     */
    public static final String NORMAL_USER = "1";
}
